﻿using System;

namespace Fuse8.ContentManagementFramework.Web.ApplicationRuntime.ContentModuleModels
{
    [Serializable]
    public class JoinModel
    {
        public int? TypeId { get; set; }
        public string Type { get; set; }
        public string PrimaryKey { get; set; }
        public string Select { get; set; }
        public string ForeignKey { get; set; }

        public string[] Selects
        {
            get { return !string.IsNullOrEmpty(Select) ? Select.Split(',') : new string[0]; }
        }
    }
}